package com.edee.bigday.member.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.edee.bigday.member.exception.MobileExistException;
import com.edee.bigday.member.exception.UserNameExistException;
import com.edee.bigday.member.vo.MemberLoginVo;
import com.edee.bigday.member.vo.MemberRegisterVo;
import com.edee.bigday.member.vo.SocialUser;
import com.edee.common.utils.PageUtils;
import com.edee.bigday.member.entity.MemberEntity;

import java.util.Map;

/**
 * 会员
 *
 * @author edee
 * @email 421763094@qq.com
 * @date 2020-12-13 21:11:07
 */
public interface MemberService extends IService<MemberEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void register(MemberRegisterVo vo);
    void checkMobileExist(String mobile) throws MobileExistException;
    void checkUserNameExist(String username) throws UserNameExistException;

    MemberEntity login(MemberLoginVo vo);

    MemberEntity socialLogin(SocialUser socialUser) throws Exception;
}

